//
//  OrderTableViewCell.m
//  SXH
//
//  Created by Jack on 15/9/1.
//  Copyright (c) 2015年 lyss. All rights reserved.
//

#import "OrderTableViewCell.h"

@interface OrderTableViewCell()

@property (nonatomic, strong) IBOutlet UIButton *delOrder;
@property (nonatomic, strong) IBOutlet UIButton *getLogistics;
@property (nonatomic, strong) IBOutlet UIButton *orderComment;

@end

@implementation OrderTableViewCell

@synthesize productName,productImage,goodsCnt,price,introduce;
@synthesize delOrder,getLogistics,orderComment;

- (void)awakeFromNib {
    // Initialization code
    
    [delOrder.layer setCornerRadius:5.0]; //设置矩形四个圆角半径
    [delOrder.layer setBorderWidth:1.0]; //边框宽度
    CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB();
    CGColorRef colorref = CGColorCreate(colorSpace,(CGFloat[]){ 1, 0, 0, 1 });
    [delOrder.layer setBorderColor:colorref];//边框颜色
    
    [getLogistics.layer setCornerRadius:5.0]; //设置矩形四个圆角半径
    [getLogistics.layer setBorderWidth:1.0]; //边框宽度
    [getLogistics.layer setBorderColor:colorref];//边框颜色
    
    [orderComment.layer setCornerRadius:5.0]; //设置矩形四个圆角半径
    [orderComment.layer setBorderWidth:1.0]; //边框宽度
    [orderComment.layer setBorderColor:colorref];//边框颜色
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (IBAction)delOrderAction:(id)sender {
    //TODO:删除订单
}

- (IBAction)getLogisticsAction:(id)sender {
     //TODO:查看物流
}

- (IBAction)orderCommentAction:(id)sender {
     //TODO:评论
}

@end
